<template>
<view>
	<block v-for="(item,index) in listData" :key="item.id">
		<view @click="fn1(item)">{{item.name}} - {{index}}</view>
	</block>
</view>
</template>

<script>
	export default {
		data() {
			return {
				listData: [{
					id: '01',
					name: 'xx1',
				},{
					id: '02',
					name: 'xx2',
				}],
				msg1: 'aa',
			}
		},
		methods: {
			fn1(item) {
				console.log(this.msg1, item.name);
			},
		}
	}
</script>

<style>

</style>
